import { createRouter, createWebHashHistory } from "vue-router"

const routes = [
    {
        path: '/',
        name: 'home1',
        component: () => import('../views/MainView.vue'),
        redirect: '/home',
        // children: [
        //         {
        //             path: '/home',
        //             name: 'home',
        //             component: () => import('../views/home/HomeView.vue')
        //         },
        //         {
        //             path: '/user',
        //             name: 'user',
        //             component: () => import('../views/user/UserView.vue')
        //         },
        //         {
        //             path: '/page1',
        //             name: 'page1',
        //             component: () => import('../views/other/PageOne.vue')
        //         },
        //         {
        //             path: '/page2',
        //             name: 'page2',
        //             component: () => import('../views/other/PageTwo.vue')
        //         },
        // ]
        children: [],
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/LoginView.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
}
)

export default router